package test2;

public class Test {
    public static void main(String[] args) {
        Factory factory=new Factory();
        Info base1=factory.factory("三寸人间");
        base1.information(new User("老狗"));
        Info base2= factory.factory("转生蜘蛛又怎样");
        base2.information(new User("小狗"));
        Info base3= factory.factory("大王饶命");
        base3.information(new User("狗狗"));
        Info base4= factory.factory("三寸人间");
        base4.information(new User("大黄狗"));

        System.out.println(base4==base1);
    }
}
